﻿@model IEnumerable<KRM.Core.vIncompleteTask>    
<table class="table table-bordered table-fix krmtable" data-height="450" >
    <thead>
        <tr>
            <th>ValueRef</th>
            <th>Value Name</th>
            <th>Task Type</th>
            <th>Task Title</th>
            <th>Asigned Date</th>
            <th>Status</th>
            <th>UserName</th>
            <th>Task Description</th>
            <th>Reason</th>
        </tr>
    </thead>
    <tbody >@foreach (var item in Model)
                                {
                                    <tr>
                                        <td><a href="/orderview/orderdetail?OrderRef=@item.ValueRef" target="blank" style="cursor: pointer" title="View Order">@item.ValueRef</a></td>
                                        <td>@item.ValueName</td>
                                        <td>@item.TaskType</td>
                                        <td><a href="#" onclick=" PopupCenter('/orderview/viewtask/@item.TaskID?orderref=@item.ValueRef', 600, 540) " style="cursor: pointer" title="View Task">@item.TaskTitle</a></td>
                                        <td>@((item.AssignedDate ?? DateTime.Now).ToString("MM/dd/yyyy HH:mm"))</td>
                                        <td>@item.Status</td>
                                        <td>@item.UserName</td>
                                        <td>@item.TaskDescription</td>
                                        <td>@item.Reason</td>
                                    </tr>
                                }
    </tbody>
</table>
